package com.huxi.http;

import java.util.Objects;

import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;

public class HttpHelper {

	private HttpMethod method;
	private HttpHeaders headers;
	private Client client;

	public HttpHelper(HttpMethod method) {
		this.method = Objects.requireNonNull(method);
	}

	public void reset() {
		this.method = HttpMethod.POST;
		this.headers = null;
		this.client = null;
	}

	public static HttpHelper ofGet() {
		return new HttpHelper(HttpMethod.GET);
	}

	public static HttpHelper postGet() {
		return new HttpHelper(HttpMethod.GET);
	}
	
}
